Global change of table cell display from object text to a specified attribute

Hi,  I have recently started working with DOORS (9.3.0.4) and would like to find a way to globally within one module  turn the display of all tables from displaying the cell object text to displaying a specified attribute (and back again).


DavidMH - Wed Jun 10 08:46:20 EDT 2015

Re: Global change of table cell display from object text to a specified attribute
O.Wilkop - Wed Jun 10 09:31:17 EDT 2015

Hey,

execute this script and modify the variable "toDisplay" to hold the value of the attribute you want to display:

 

Module m = current;
Object o;

string toDisplay = "Object Text";

for o in entire m do{
        if(table(o)){
                o.(reserved "Main Column Attribute") = toDisplay;
        }
}

 

Re: Global change of table cell display from object text to a specified attribute
DavidMH - Thu Jun 11 06:07:20 EDT 2015

O.Wilkop - Wed Jun 10 09:31:17 EDT 2015

Hey,

execute this script and modify the variable "toDisplay" to hold the value of the attribute you want to display:

 

Module m = current;
Object o;

string toDisplay = "Object Text";

for o in entire m do{
        if(table(o)){
                o.(reserved "Main Column Attribute") = toDisplay;
        }
}

 

Thank you for your help.   I will only be able to test this next week Wednesday but trust it will work.